<template>
	<div id="test-vuex">
		<div>{{totalNum}}</div>
    <com-add-1></com-add-1>
    <com-add-5></com-add-5>
	</div>
</template>
<script type="text/javascript">
	import comAdd1 from '@/components/comAdd1'
	import comAdd5 from '@/components/comAdd5'

	export default {
		name:'test-vuex',
		data(){
			return {
				num:0,
			}
		},
		components:{comAdd1,comAdd5},
		methods:{

		},
		computed:{
			totalNum(){
				console.log(this.$store.getters.__proto__)
				return this.$store.state.totalNum
				return this.$store.getters.getTotal
			}
		}
	}
</script>